package com.tensquare.base.model;

import lombok.Data;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "tb_label")
public class Label implements Serializable {

    @Id
    private String id ;

    private String labelname ;

    private String state ;

    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    private Integer count ;

    private String recommend ;

    @JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY)
    private Integer fans ;

}
